Adwaita: avoid colorswatch growing when drop targets
authorLapo Calamandrei <calamandrei@gmail.com>
Sat, 9 Jan 2016 14:30:20 +0000 (15:30 +0100)
committerLapo Calamandrei <calamandrei@gmail.com>
Sat, 9 Jan 2016 14:30:20 +0000 (15:30 +0100)
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index afa588968bcb42a0c1d195a72f633c930fa2c426..2e00a326eb0b755b687f8f7dbd93efb6c7e79440 100644 (file)
@@ -3411,6 +3411,8 @@ colorswatch {
   // is colorswatch overlay {}, colorswatch has the programmatically set background, so most of the style is
   // applied to the overlay box.
 
+  &, &:drop(active) { border-style: none; } // FIXME: implement a proper drop(active) state
+
   $_colorswatch_radius: 5px;
   $_colorswatch_overlay_shadow: if($variant == 'light', inset 0 2px 2px -3px transparentize(black, 0.3),
                                                         inset 0 3px 2px -2px transparentize(black, 0.5));
@@ -3715,7 +3717,7 @@ frame.keycap {
 }
 
 *:drop(active):focus,
-*:drop(active) { border: 1px solid black; }
+*:drop(active) { border: 1px solid black; } // FIXME this makes boxes grow and looks pretty bad, needs to be handled differently
 
 stackswitcher button.text-button { min-width: 100px; } // FIXME aggregate with buttons
 
index aac39720cc4e0c826b8daf4b8d9250497d387c7c..a47ed9ff86465b84388f7b24e6dd6883a0009b22 100644 (file)
@@ -4432,6 +4432,8 @@ tooltip {
 /*****************
  * Color Chooser *
  *****************/
+colorswatch, colorswatch:drop(active) {
+  border-style: none; }
 colorswatch.top {
   border-top-left-radius: 5.5px;
   border-top-right-radius: 5.5px; }
index 1df0a172ddfc4137cc0b258feda275e4f3957c7b..cdacc219aebb5500f58d31e7b160684a772e9cb0 100644 (file)
@@ -4608,6 +4608,8 @@ tooltip {
 /*****************
  * Color Chooser *
  *****************/
+colorswatch, colorswatch:drop(active) {
+  border-style: none; }
 colorswatch.top {
   border-top-left-radius: 5.5px;
   border-top-right-radius: 5.5px; }